<template>
     <van-sticky>
            <van-nav-bar title="详情页" left-text="返回" left-arrow @click-left="onClickLeft" />
        </van-sticky>
    <div v-html="xqy.goods_introduce">

    </div>
</template>

<script setup>
import { ref } from 'vue';
const onClickLeft = () => history.back();
import axios from 'axios';
import { useRouter, useRoute } from 'vue-router';
let router = new useRouter()
let route = new useRoute()
let xqy = ref([])
axios.get('https://api-hmugo-web.itheima.net/api/public/v1/goods/detail', { params: { goods_id: route.query.goods_id } }).then(res => {
    xqy.value = res.data.message
})
</script>

<style>

</style>